package com.starblink.feedback

import android.app.Activity
import android.view.View
import com.starblink.android.basic.widget.dialog.BaseBottomSheetFragment
import com.starblink.feedback.databinding.LogoutDialogLayoutBinding

class LogoutDialog(
    val context: Activity,
    val onConfirmClick: () -> Unit
) : BaseBottomSheetFragment() {

    lateinit var mBinding: LogoutDialogLayoutBinding


    override fun getBindingRootView(): View {
        mBinding = LogoutDialogLayoutBinding.inflate(layoutInflater)
        return mBinding.root
    }

    override fun initView() {

        mBinding.clickCancel.setOnClickListener {
            dismiss()
        }

        mBinding.clickConfirm.setOnClickListener {
            dismiss()
            onConfirmClick()
        }
    }

}